package wrapper;

/**
 * @Package: wrapper
 * @ClassName: Integer_
 * @Author: x2606
 * @CreateTime: 2022/4/26 13:53
 * @Description:
 */

public class Integer_ {
    public static void main(String[] args) {
        //手动装箱
        Integer integer = Integer.valueOf(100);
        Integer integer1 = new Integer(100);

        //自动装箱
        Integer integer2 = 100;

        //手动拆箱
        int n = integer.intValue();

        //自动拆箱
        int n2 = integer;

        //包装类转String
        String str1 = integer + "";
        String str2 = integer.toString();
        String str3 = String.valueOf(integer);

        //String->包装类
        String str4 = "321";
        Integer i = Integer.parseInt(str4);




        System.out.print(integer.toString());
    }
}
